<script>
    var userEmail = '{$user_email}';
    tuzkiNumber = 1;
</script>
<div class="row">
    <main class="col-lg-10 col-lg-push-1 main-content">
        <article class="post">
        <div class="row b-comment">

            <div class="panel-body">
                <form action="" method="post" id="reply">
                    <div class="form-group">
                        <textarea id="comment"  class="form-control" name="content" rows="5"   ></textarea>

                    </div>
                    <div class="form-group">
                        <input type="hidden" name="aid" value="{$article['current']['aid']}" id="aid">
                        <button type="submit" class="btn btn-primary pull-right">评论</button>
                    </div>
                </form>

            </div>

            <notempty name="comment">


                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 b-user-comment">
                    <volist name="comment" id="v">
                        <div class="row b-user b-parent">
                            <div class="col-xs-2 col-sm-1 col-md-1 col-lg-1 b-pic-col">
                                <img class="b-user-pic" src="{:avatar($v['uid'])}">
                            </div>
                            <div class="col-xs-10 col-sm-11 col-md-11 col-lg-11 b-content-col b-cc-first">

                                <p class="b-date"><span
                                    class="b-user-name">{$v['username']}</span>
                                    <span>&nbsp;&nbsp;&nbsp; {:friendly_date($v['date'])}</span>
                                    <if condition="$v['uid'] eq $user['uid']">
                                        <span style="float:right;"><a href="javascript:;"  style="color:#CCCCCC" onclick="delreply({$v['cmtid']})"><i class="fa fa-trash"></i></a></span>
                                    </if>
                                </p>

                                <p class="content">{$v['content']}</p>


                                <div class="b-clear-float"></div>
                            </div>
                        </div>

                    </volist>
                </div>
            </notempty>



        </div>

      </article>
    </main>

</div>

